/*#include<stdio.h>
#include<windows.h>

int main()
{
	int min, i, j, t, a[3];
	int *arrey;
	arrey = a;
	//put in data
	printf_s("Please put in three number:");
	for (i = 0; i < 3; i++)					//for(arrey = a; arrey < (a + 3);arrey++)
	{										//{
		scanf_s("%d", &a[i]);					//	scanf_s("%d",arrey);
	}										//}
	//use selection method to rank the arrey
	for (i = 0; i < 2;i++)
	{
		min = *(arrey + i);
		for (j = i + 1; j < 3;j++)
		{
			if ( min > *(arrey + j))
			{
				t = *(arrey + i);
				*(arrey + i) = *(arrey + j);
				*(arrey + j) = t;
			}
		}
	}
	//echo the final arrey
	arrey=a;
	for (i=0; i < 3;i++ , arrey++)
	{
		printf_s("%d\t", *arrey);
	}
	system("pause");
	return 0;
}*/